package com.develop.skwen.basemodule.view;

import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.develop.skwen.basemodule.presenter.BasePresenter;

/**
 * Created by skwen
 * on 18-5-29
 */

public interface BaseVu<P extends BasePresenter> {


    /**
     * 设置activity
     * @param activity
     */
    void setActivity(Activity activity);

    /**
     * 设置presenter
     * @param presenter
     */
    void setPresenter(P presenter);

    /**
     * 布局解析
     * @param layoutInflater
     * @param viewGroup activity时为null
     */
    void init(LayoutInflater layoutInflater, ViewGroup viewGroup);

    /**
     * 获取布局view
     */
    View getView();
}
